package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 销售单
 * </p>
 *
 * @author 陶启然
 * @since 2019-07-30
 */
@TableName("both_sale")
public class BothSale implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识id
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 两地销售表id
     */
    @TableField("both_sale_id")
    private Long bothSaleId;

    /**
     * 审批状态
     */
    @TableField("status")
    private Integer status;

    /**
     * 流程id
     */
    @TableField("process_instance_id")
    private String processInstanceId;

    /**
     * 产品id
     */
    @TableField("product_order_id")
    private Long productOrderId;

    /**
     * 产品序列号id
     */
    @TableField("inventory_order_id")
    private Long inventoryOrderId;

    /**
     * 申请时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBothSaleId() {
        return bothSaleId;
    }

    public void setBothSaleId(Long bothSaleId) {
        this.bothSaleId = bothSaleId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    public Long getProductOrderId() {
        return productOrderId;
    }

    public void setProductOrderId(Long productOrderId) {
        this.productOrderId = productOrderId;
    }

    public Long getInventoryOrderId() {
        return inventoryOrderId;
    }

    public void setInventoryOrderId(Long inventoryOrderId) {
        this.inventoryOrderId = inventoryOrderId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "BothSale{" +
        "id=" + id +
        ", bothSaleId=" + bothSaleId +
        ", status=" + status +
        ", processInstanceId=" + processInstanceId +
        ", productOrderId=" + productOrderId +
        ", inventoryOrderId=" + inventoryOrderId +
        ", createTime=" + createTime +
        ", userId=" + userId +
        "}";
    }
}
